---
layout: default
---

{% assign post = page %}
{% if post.tags.size > 0 %}
  {% for post_tag in post.tags %}
    {% assign tag = site.data.tags[post_tag] %}
    {% if tag %}
      {% capture tags_content_temp %}<a href="{{site.baseurl}}/html/{{post_tag}}.html">{{tag.name}}</a>{% if forloop.last == false %}<span>和</span>{% endif %}{% endcapture %}
      {% assign tags_content = tags_content_temp %}
    {% endif %}
  {% endfor %}
{% else %}
  {% assign tags_content = '' %}
{% endif %}

<article class="post">
  <h1 class="post-title">{{page.title}}</h1>
  <div class="post-date">
    <span><span class="icon icon-calendar"></span> 发表于 <time datetime="{{page.date | date_to_xmlschema}}">{{page.date | date: '%Y年%m月%d日'}}</time> &middot;</span>
    {% if tags_content != '' %}归类于{{tags_content}} &middot;{% endif %}
    阅读完需 {{content | strip_html | strip_newlines | size | divided_by: 350 | round}} 分钟 &middot;
    <span id="busuanzi_container_page_pv" style='display:none'>阅读量 <span id="busuanzi_value_page_pv"></span> </span>
    <span style='display:none'><a href="https://github.com/linzening/linzening.github.io/edit/master/{{page.path}}">报告错误</a></span>
  </div>
  <hr class="post-divide">
  {{content}}
</article>

{% if site.author.about %}
<aside class="author">
  <h2 class="aside-title">关于作者</h2>

  {% if site.author.photo %}
  <audio src="{{site.cdn}}/public/audio/cat.mp3" id="cat"></audio>
  <img class="me" src="{{site.cdn}}{{site.author.photo}}" alt="{{site.author.name}}" onclick="document.getElementById('cat').play()"/>
  {% endif %}

  {{site.author.about | markdownify}}
</aside>
{% endif %}
